
import request from "@/service/axios/index";


const subjectApi = {
    /**@description 查询列表 */
    queryList: (data) => {
        return request.post({ url: '/subject/list', data })
    },
    /**@description 删除 */
    delete: (id) => {
        return request.delete({ url: '/subject/delete?id=' + id })
    },
    /**@description 保存数据 */
    saveData: (data) => {
        return request.post({ url: "/subject/save", data })
    },
    getDetail: (id) => {
        return request.get({ url: `/subject/detail?id=${id}` })
    }
}
export default subjectApi